package org.imlinker.util;

import java.awt.Image;
import java.awt.Toolkit;

/**
 * 保存图片资源。
 */
public class Images {

	public static Image getLogo() {
		return getIcon1();
	}

	public static Image getIcon0() {
		if (icon0 == null) {
			icon0 = Toolkit.getDefaultToolkit().createImage(
					Images.class.getResource("/resources/logo0.png"));
		}

		return icon0;
	}

	public static Image getIcon1() {
		if (icon1 == null) {
			icon1 = Toolkit.getDefaultToolkit().createImage(
					Images.class.getResource("/resources/logo1.png"));
		}

		return icon1;
	}

	public static Image getIcon2() {
		if (icon2 == null) {
			icon2 = Toolkit.getDefaultToolkit().createImage(
					Images.class.getResource("/resources/logo2.png"));
		}

		return icon2;
	}

	public static Image getIcon3() {
		if (icon3 == null) {
			icon3 = Toolkit.getDefaultToolkit().createImage(
					Images.class.getResource("/resources/logo3.png"));
		}

		return icon3;
	}

	public static Image getIcon4() {
		if (icon1 == null) {
			icon4 = Toolkit.getDefaultToolkit().createImage(
					Images.class.getResource("/resources/logo4.png"));
		}

		return icon4;
	}

	private static Image icon0;

	private static Image icon1;

	private static Image icon2;

	private static Image icon3;

	private static Image icon4;

}
